#pragma once
#include "sensordatainput.h"
#include "ReconstructByKinectCommonGlobal.h"
#include <fstream>



class _LIB_CLASS SensorDataFileInput : public SensorDataInput
{
private:

	std::ifstream _inStream;
	char *_buf;
	bool _hasNewFrame;
	int _frameDataSize;

	virtual bool _grabFrame ();

public:

	SensorDataFileInput (const std::string &name, char* dataFile,
			const std::string &intrinsicFile = "../Data/Calibration/default.dat",
			const std::string &extrinsicFile = "");

	virtual ~SensorDataFileInput ();
};